/**
 * @file shutdown.h
 *
 */
#ifndef SHUTDOWN_H
#define SHUTDOWN_H

#ifdef __cplusplus
extern "C" {
#endif

/*********************
 *      INCLUDES
 *********************/

#ifdef LV_CONF_INCLUDE_SIMPLE
#include "lvgl.h"
#include "lv_watch_conf.h"
#else
#include "../../../lvgl/lvgl.h"
#include "../../../lv_watch_conf.h"
#endif

#if USE_LV_WATCH_SHUTDOWN != 0

/*********************
 *      DEFINES
 *********************/
#define    WATCH_SHUTDOWN_UNPERFORMED  0
#define    WATCH_SHUTDOWN_PERFORMING   1

/**********************
 *      TYPEDEFS
 **********************/

/**********************
 * GLOBAL PROTOTYPES
 **********************/
lv_obj_t * shutdown_create(lv_obj_t * activity_obj, bool confirm);
void shutdown_create_btn_action(lv_obj_t * btn, lv_event_t event);
#if USE_POWER_OFF_GIF
void shutdown_music(void);
#endif
void shutdown_confirm_btn_action(lv_obj_t * btn, lv_event_t event);
uint8_t get_shutdown_performance_flg(void);

/**********************
 *      MACROS
 **********************/

#endif /*USE_LV_WATCH_SHUTDOWN*/

#ifdef __cplusplus
} /* extern "C" */
#endif

#endif /*SHUTDOWN_H*/
